package com.vote.service.impl;

import com.vote.entity.AuthUser;
import com.vote.repository.AuthUserRepository;
import com.vote.service.AuthUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Discription:
 * Auther: PC-liuwei
 * Date: 2017/5/18.
 */
@Service
public class AuthUserServiceImpl implements AuthUserService {
    @Autowired
    private AuthUserRepository authUserRepository;
    @Override
    public AuthUser getAuthUser(String userName, String passWord) {
        return authUserRepository.findByUserNameAndPassWord(userName, passWord);
    }
}
